package com.demo.autocomplete;

import java.util.ArrayList;

public class MyToolBO {

	@SuppressWarnings("unchecked")
	public static ArrayList find(String str) {
		
		MyToolDAO dao = new MyToolDAO();
		
		String hql = "FROM BCItemBean WHERE code like '%"+str+"%'ORDER BY code";
		return (ArrayList)dao.find(hql);
	}

}
